//========================================================================================
//  
//  $File: $
//  
//  Owner: Toan Nguyen
//  
//  $Author: $
//  
//  $DateTime: $
//  
//  $Revision: $
//  
//  $Change: $
//  
//  Copyright 1997-2008 Adobe Systems Incorporated. All rights reserved.
//  
//  NOTICE:  Adobe permits you to use, modify, and distribute this file in accordance 
//  with the terms of the Adobe license agreement accompanying it.  If you have received
//  this file from a source other than Adobe, then your use, modification, or 
//  distribution of it requires the prior written permission of Adobe.
//  
//========================================================================================
#include "VCPlugInHeaders.h"

// Interface includes:
#include "IPMStream.h"

// Project includes:
#include "AMPNodeID.h"
/**
	@ingroup wlistboxcomposite
*/

/* Compare
*/
int32 AMPNodeID::Compare(const NodeIDClass* nodeID) const
{
	const AMPNodeID* oneNode = static_cast<const AMPNodeID*>(nodeID);
	ASSERT(nodeID);
    return fName.Compare(kTrue, oneNode->GetName());

}


/* Clone
*/
NodeIDClass* AMPNodeID::Clone() const
{
	return new AMPNodeID(this->GetName());
}


/* Read
*/
void AMPNodeID::Read(IPMStream* stream)
{
	fName.ReadWrite(stream);
}


/* Write
*/
void AMPNodeID::Write(IPMStream* stream) const
{
	(const_cast<AMPNodeID*>(this)->fName).ReadWrite(stream);
}

//	end, File:	AMPNodeID.cpp
